package com.imooc.ad.vo;

/*
 * @author Qihs
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.CollectionUtils;

import java.util.Collection;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
//创意计划的请求对象
public class AdPlanGetRequest {
    private Long userId;
    private List<Long> ids;

    public boolean validate(){
        //userId不为空，且ids最少有一个值（不为空）
        return userId != null && !CollectionUtils.isEmpty(ids);
    }
}
